package com.mo.bio;

public class Sum {
    public static void main(String[] args) {
        long t1 = System.currentTimeMillis();
        sum();
        long t2 = System.currentTimeMillis();
        System.out.println(t2 - t1);

        System.out.println(System.currentTimeMillis());
    }

    public static long sum() {
        long sum = 0L;
        for (int i = 0; i < Integer.MAX_VALUE; i++) {
            sum += i;
        }
        return sum;
    }
}
